package com.nuc.iblog.service.imp;

import com.nuc.iblog.entity.User;
import com.nuc.iblog.entity.UserBlog;
import com.nuc.iblog.jpa.UserBlogJpa;
import com.nuc.iblog.service.UserBlogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ClUserBlogServiceImp implements UserBlogService {
    @Autowired
    UserBlogJpa userBlogJpa;
    @Override
    public UserBlog findByuser(User user) {
        return userBlogJpa.findByUser(user);
    }

    @Override
    public UserBlog ModifyBlog(UserBlog userBlog) {
        return userBlogJpa.save(userBlog);
    }
}
